<?php

namespace App\Http\Requests\Api;

class AuthorizationRequest extends FormRequest
{
    public function rules()
    {
        return [
            'name' => 'required|string',
            'password' => 'required|string|min:6',
        ];
    }

    public function attributes()
    {
        return [
            'name' => '账号'            
        ];
    }    
}
